﻿using System.Windows;

namespace WpfClient
{
    /// <summary>
    /// Description for Connexion.
    /// </summary>
    public partial class Connexion : Window
    {
        /// <summary>
        /// Initializes a new instance of the Connexion class.
        /// </summary>
        public Connexion()
        {
            InitializeComponent();
        }


        private void button1_Click(object sender, RoutedEventArgs e)
        {
            EP.Session session = new EP.Session();
            EP.RssFeed food = new EP.RssFeed();
            EP.RssFeedServiceClient _cli = new EP.RssFeedServiceClient();
            food.url = textBox1.Text;
            session = _cli.startSession("toto@gmail.com", "coucou", EP.ServiceDevice.WPF);
            //_cli.startSessionCompleted += new EventHandler<EP.startSessionCompletedEventArgs>(cli_startSessionCompleted);
            //_cli.startSessionAsync("toto@gmail.com", "coucou", EP.ServiceDevice.WPF);
            food = _cli.Subscribe(session, food);
            //feedTab = _cli.ListRssFeedItem(session, feed);
        }

    
    }
}